package com.laicar.geekbank;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class ListViewDemoActivity extends AppCompatActivity {
    private ListView mPhoneBookListView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_list_view_demo);
        mPhoneBookListView=findViewById(R.id.list_view);
        PhoneBookAdapter adapter=new PhoneBookAdapter(ListViewDemoActivity.this);
        mPhoneBookListView.setAdapter(adapter);

    }
}
